package cn.yinzhiping.interceptorlearn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登陆测试拦截器
 * @author yinzhiping
 */
@RestController
public class LoginController {
    @RequestMapping("/login")
    public String getLogin(){
        return "hello interceptor";
    }

    @RequestMapping("/test")
    public String getLoginTest(){
        return "hello interceptor";
    }
}
